﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class UIManager : MonoBehaviour
{
    public static System.Action<Vector2> Length;
    public Image fireDir;
    // Use this for initialization
    void Awake()
    {
        Length += ChangeLength;
    }
    private void OnDestroy()
    {
        Length -= ChangeLength;
    }
    // Update is called once per frame
    void Update()
    {

    }
    public void ChangeLength(Vector2 value)
    {
        fireDir.gameObject.GetComponent<RectTransform>().sizeDelta=value;
    }
}
